/**
* @(#)GenerateRandowNumber.java 2009-12-2
*   
* Copyright  (c) 2009-2010 Wilmar IT Service,  Inc.   
* All  rights  reserved.   
* TODO
*/  

package com.wilmar.common.util;

import java.util.Random;

/**
 * @author asus Email:zhoulibo_java@msn.cn
 * @version 1.0.0
 */
public class GenerateRandomNumber {
	
	public static String getRadomNumber(){
		String s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890";
		StringBuffer sb = new StringBuffer();
		for(int i = 0; i < 10; i++){
			Random r = new Random();
			int num = r.nextInt(62);
			sb.append(s.charAt(num));
		}
		return sb.toString();
	}
	
}
